package com.axdoc.doctor.service;

import com.axdoc.doctor.entity.User;
import com.axdoc.doctor.exceptions.DoctorBizException;


/**
 * @author yingjun
 * 注意：如果消费端想要访问提供者的rest服务，这里需要加上JAX-RS的Annotation
 */

public interface UserService {

    public User getUserByPhone(String phone) throws DoctorBizException, Exception;

    public User getUserByName(String name) throws DoctorBizException;
    
    public User getUserById(Long id) throws DoctorBizException;
    
    public User addUser(User user) throws DoctorBizException;
}
